package sphere.model;

public class Sphere {
	private double rayon;
	
	public Sphere(){
		this.rayon = 0.0;
	}
	public Sphere(double rayon){
		this.rayon = rayon;
	}
	public double getRayon(){
		return this.rayon;
	}
	public void setRayon(double rayon){
		this.rayon = rayon;
	}
	public double getSurface(){
		return 4 * Math.PI * Math.pow(this.rayon, 2);
	}
	public double getVolume(){
		return (4 * Math.PI * Math.pow(this.rayon, 3))/3;
	}
}
